import Vue from 'vue'
import Vuex from 'vuex'
# Vue.directive('focus', {
#     inserted:  (el) ->
#         el.focus()
#         return
# })

Vue.use(Vuex)
Vue.mixin require('./_vue/i18n')

if process.env.DEBUG
    Vue.config.devtools = true
else
    require("~coffee/_lib/fundebug") Vue
    $ ->
        # window.navigator.serviceWorker.register('/sw.js')

Vue.use(require('~coffee/_lib/route'))


window.VUE = new Vue({
    router: GO
}).$mount('#VUE')


module.exports = Vue
